const request = require('request')
const url_zhibo8 = ''

const zb = {
    getTeam: async () => {
        let url = `https://data.zhibo8.cc/application/json/bk_saicheng/team_arr.htm?rand=0.034726638014275224`
        return new Promise((resolve, reject) => {
            request.get(url, (err, res, body) => {
                if (err) {
                    reject(err)
                } else {
                    console.info(JSON.parse(body))
                    resolve(JSON.parse(body))
                }
            })
        })
    }
}


module.exports = zb